package com.equipment.fkdcn.service;

import com.equipment.fkdcn.mapper.ETypeMapper;
import com.equipment.fkdcn.pojo.EType;

import java.util.List;

public class ETypeServiceImpl implements ETypeService {

    private ETypeMapper eTypeMapper;

    public void seteTypeMapper(ETypeMapper eTypeMapper) {
        this.eTypeMapper = eTypeMapper;
    }

    public boolean addType(String name) {
        return eTypeMapper.addType(name);
    }

    public boolean upType(EType eType) {
        return eTypeMapper.upType(eType);
    }

    public boolean delType(int id) {
        return eTypeMapper.delType(id);
    }

    public List<EType> AllQueryEType() {
        return eTypeMapper.AllQueryEType();
    }

    public List<EType> likeQuery(String name) {
        return eTypeMapper.likeQuery(name);
    }
}
